#!/usr/bin/python
#coding:utf-8

from __future__ import unicode_literals

from django.db import models

# Create your models here.
class user(models.Model):
    add_time = models.DateTimeField('添加时间', auto_now_add=True)
    open_id = models.CharField("订单号", max_length=20)
    cellphone = models.IntegerField('手机号', blank=True)
    wechat = models.CharField("微信号", max_length=20)
    subscribe = models.CharField("是否订阅公众号", max_length=20)
    nickname = models.CharField("昵称", max_length=20)
    country = models.CharField("国家", max_length=20)
    language = models.CharField("语言", max_length=20)
    province = models.CharField("省", max_length=20)
    city = models.CharField("城市", max_length=20)
    sex = models.CharField("性别", max_length=20)
    head_img_url = models.CharField("头像", max_length=20)
    subscribe_time = models.CharField("订阅时间", max_length=20)
    remark = models.CharField("备注", max_length=20)
    group_id = models.CharField("微信分组", max_length=20)

    class Meta:
        verbose_name_plural = 'C端用户'
        db_table = 'user'

    def __unicode__(self):
        return self.nickname
